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
# coding: utf-8 | |
from __future__ import absolute_import, unicode_literals, print_function | |
from multiprocessing import Lock, Process, Queue | |
from optparse import make_options | |
from boto import ses | |
from django.conf import settings | |
from django.core.management.base import BaseCommand |
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
# Description: | |
# Atlassian Stash API | |
# | |
# Dependencies: | |
# None | |
# | |
# Configurations: | |
# None | |
# Commands: | |
# None |
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
-- Read Int | |
atoi str = read str ::Int | |
readInt = do | |
line <- getLine | |
let i = atoi line | |
return i | |
--- exsample |
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
# coding: utf-8 | |
from settings import SETTINGS | |
try: | |
from settings_local import SETTINGS as LOCAL_SETTINGS | |
SETTINGS.update(LOCAL_SETTINGS) | |
except ImportError: | |
pass |
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 | |
# coding: utf-8 | |
from __future__ import absolute_import, unicode_literals, print_function | |
import commands | |
import sys | |
COMMAND = "rsync -arv {EXCLUDE} --partial {FROM} {TO}" | |
EXCLUDES = [] |
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
'use strict' | |
msgpack = require('msgpack') | |
class Request | |
constructor: (onSuccess, onError) -> | |
@onSuccess = onSuccess or (statusCode, data) -> | |
@onError = onError or (statusCode, data) -> | |
@xhr = new XMLHttpRequest() |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { | |
scanner := bufio.NewScanner(os.Stdin) |
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
ProjectName | |
| | |
|-- Assets | |
|-- Editor | |
|-- SettingsEditor.cs | |
|-- Sctipts | |
|-- Settings.cs |
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
package main | |
import ( | |
"encoding/base64" | |
"encoding/json" | |
"net/http" | |
"net/url" | |
"strconv" | |
"strings" | |
) |
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
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/m4rw3r/uuid" | |
"gopkg.in/redis.v2" | |
) |