This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| F Gsus4 Am7 | |
| ...Tiba saat mengerti | |
| G/B C F | |
| Jerit suara hati | |
| Gsus4 Am7 | |
| Letih meski mencoba | |
| G/B F/C | |
| Me...naklukkan | |
| G/B | |
| Rasa yang ada |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| keys: F Am7 C C7 Dm7 Gm7 A# | |
| [Intro] | |
| F Am C C7 | |
| [Verse 1] | |
| F A# | |
| Lilin-lilin kecil hangat di hati | |
| C Am7 Dm7 | |
| Mengingatkan daku saat indah |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| G D A D C | |
| Cintamu kudamba walaupun tak pasti | |
| C Bm G Am D | |
| Kuhadirkan sayang di setiap langkahmu | |
| Em D C | |
| Masih saja ada yang kutunggu | |
| Am Gm D | |
| Kasih sempurnakah cinta kita | |
| G D Em D C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* used to override pale yellow color that chrome uses when user chooses an item from | |
| its autocomplete list */ | |
| input:-webkit-autofill, | |
| input:-webkit-autofill:hover, | |
| input:-webkit-autofill:focus, | |
| input:-webkit-autofill:active { | |
| transition: background-color 5000s ease-in-out 0s; | |
| } | |
| input:-webkit-autofill { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from SPARQLWrapper import SPARQLWrapper, JSON, DIGEST, POST | |
| import json | |
| with open('contoh.json') as f: | |
| specs = json.load(f) | |
| x = "" | |
| for d in specs['aktivitas di lapangan']: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var wrapURLs = function (text, new_window) { | |
| var url_pattern = /(?:(?:https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}\-\x{ffff}0-9]+-?)*[a-z\x{00a1}\-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}\-\x{ffff}0-9]+-?)*[a-z\x{00a1}\-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}\-\x{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?/ig; | |
| var target = (new_window === true || new_window == null) ? '_blank' : ''; | |
| return text.replace(url_pattern, function (url) { | |
| var protocol_pattern = /^(?:(?:https?|ftp):\/\/)/i; | |
| var href = protocol_pattern.test(url) ? url : 'http://' + url; | |
| return '<a href="' + href + '" target="' + target + '">' + url + '</a>'; | |
| }); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from matplotlib import pyplot as plt | |
| from copy import deepcopy | |
| import numpy as np | |
| plt.rcParams['figure.figsize'] = (10, 10) | |
| plt.style.use('ggplot') | |
| # Euclidian Distance | |
| dist = lambda a, b, ax=1: np.linalg.norm(a - b, axis=ax) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sympy as sp | |
| import matplotlib.pyplot as plt | |
| def cos(x): return sp.N(sp.cos(x/180.0 * sp.pi)) | |
| def sin(x): return sp.N(sp.sin(x/180.0 * sp.pi)) | |
| # from math import cos, sin, radians | |
| # init | |
| t = 0 | |
| deltaT = 0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image, ImageDraw, ImageFont | |
| import click | |
| def pixels2data(pixels): | |
| pixels_out = [] | |
| for row in pixels: | |
| for tup in row: | |
| pixels_out.append(tup) | |
| return pixels_out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def memberFollower(x): | |
| low, avg, high = 0,0,0 | |
| if x > 20000: | |
| low = 0 | |
| elif x > 15000 and x <= 20000: | |
| low = (20000 - x) / (20000-15000) | |
| elif x <= 15000: | |
| low = 1 | |
| if x > 55000 or x < 15000: |
NewerOlder