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
| const fs = require('fs'); | |
| let data = fs.readFileSync('IRONCLAD.autosave.json', 'utf8'); | |
| const out = []; | |
| for (let i = 0; i < data.length; i++) { | |
| const key = 'key'; | |
| out.push(data.charCodeAt(i) ^ key.charCodeAt(i % key.length)); | |
| } |
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 re | |
| from django.utils.encoding import force_text | |
| from django.template import Library, Node | |
| register = Library() | |
| def strip_spaces_in_tags(value): |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| namespace GenericFSM { | |
| public class FSM<T> where T : struct, IConvertible { | |
| public T State { get; private set; } |
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
| # http://python.web.id/angka-terbilang-pada-python/#.VQpS8s2sXQo | |
| satuan = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', | |
| 'delapan', 'sembilan', 'sepuluh', 'sebelas'] | |
| def terbilang_(n): | |
| n = int(n) | |
| if n >= 0 and n <= 11: | |
| hasil = [satuan[n]] | |
| elif n >= 12 and n <= 19: |
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
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |