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 java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.LinkedList; | |
| import java.util.TreeSet; | |
| public class Jame{ | |
| private static TreeSet visited = new TreeSet(); |
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
| #!/bin/bash | |
| set -o nounset | |
| set -o errexit | |
| SPU_HOME="/home/spu" | |
| if [ ! -d "$SPU_HOME" ]; then | |
| echo "key folder not found: $SPU_HOME" | |
| exit 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
| - name: ensure github.com is a known host | |
| lineinfile: | |
| dest: /home/vagrant/.ssh/known_hosts | |
| create: yes | |
| state: present | |
| line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}" | |
| regexp: "^github\\.com" | |
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
| a = { | |
| t : "text", | |
| o : (function(){ | |
| return { | |
| f: function(){ | |
| console.log(this.t); | |
| } | |
| }; | |
| })() | |
| } |
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 a = { | |
| b: "text", | |
| h: function(c){ | |
| function compare(a,b){ | |
| return a.indexOf(b) | |
| } | |
| // how to make this work nicely? | |
| return c.reduce(function(result, key) { |
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
| function def(a){ | |
| console.log(1, a, typeof a !== 'undefined' ? a : true ); | |
| console.log(2, a, a || true ); | |
| console.log(3, a, !!a ); | |
| } | |
| def() | |
| def(true) |
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
| menuentry 'ArchLinux reciprocity' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-91816283-78a8-4958-989c-3056ea1c90dc' { | |
| load_video | |
| set gfxpayload=keep | |
| insmod gzio | |
| insmod part_gpt | |
| insmod part_gpt | |
| insmod btrfs | |
| set root='hd0,gpt2' | |
| if [ x$feature_platform_search_hint = xy ]; then | |
| search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 91816283-78a8-4958-989c-3056ea1c90dc |
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
| function install_yaourt { | |
| local aa=$(pwd) | |
| pacman -Syy --noconfirm yajl wget binutils base-devel | |
| cd /tmp | |
| wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz | |
| tar -xpvf package-query.tar.gz | |
| cd package-query |
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
| """fill object types table with workflow models | |
| Revision ID: 4f9f00e4faca | |
| Revises: 57cc398ad417 | |
| Create Date: 2015-04-03 10:12:50.583661 | |
| """ | |
| from alembic import op | |
| import sqlalchemy as sa |
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
| #!/usr/bin/env python | |
| import random | |
| import string | |
| import timeit | |
| from sqlalchemy import Column | |
| from sqlalchemy import Integer | |
| from sqlalchemy import String | |
| from sqlalchemy import create_engine |