This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="header"> | |
<a class="btn" href="#">Click me</a> |
This file contains 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.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.LinkOption; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.nio.file.attribute.*; | |
public class T_FileAttrs { | |
public static void print_usage() { | |
System.err.println("Usage: java Javast [-s] <path to file> [<path to file> ...]"); |
This file contains 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.IOException; | |
import java.nio.file.*; | |
import static java.nio.file.StandardWatchEventKinds.*; | |
public class T_Watcher { | |
public static void main(String[] args) throws IOException { | |
Path target_path = Paths.get(args.length > 0 ? args[0] : "/"); | |
WatchService w_serv = FileSystems.getDefault().newWatchService(); |
This file contains 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.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.*; | |
public class T_ExecutorService { | |
public static void main(String[] args) throws InterruptedException { | |
ExecutorService ex = Executors.newFixedThreadPool(20); | |
System.out.printf("! Creating Executing service: %s%n", ex.getClass().getName()); | |
System.out.println("! Submitting tasks"); |
This file contains 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
angular.module('Nuclight.Services.Facebook', []) | |
.provider('facebook', function () { | |
var fb_options = {}; | |
var fb_lang = 'en_US'; | |
this.init = function (options, lang) { | |
fb_options = options; | |
if (lang) fb_lang = lang; | |
}; |
This file contains 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 fs = require('fs'); | |
var mime = require('mime'); | |
function file_type_search(path, mime_match, callback_all, callback_each) { | |
var file_list = []; | |
var level = 0; | |
if (typeof callback_all !== 'function') callback_all = false; | |
if (typeof callback_each !== 'function') callback_each = false; |
This file contains 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 python3 | |
import sys | |
from urllib.request import urlopen | |
import json | |
ERR_SUCCESS = 0 | |
ERR_UNKNOWN = 1 | |
ERR_MAKES_FILE_NOT_FOUND = 2 |
This file contains 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 glob | |
from datetime import datetime | |
from os import makedirs | |
from shutil import copy | |
import exifread | |
from path import path | |
def process_file(file_path, dest_dir): |
This file contains 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 __future__ import print_function | |
import datetime | |
import json | |
import httplib2 | |
from apiclient import discovery | |
from oauth2client import client | |
from oauth2client import tools | |
from oauth2client.file import Storage |
This file contains 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 binascii | |
import json | |
import socket | |
import ssl | |
import struct | |
import sys | |
def pack_payload(title, message, data=None, sound='Default', badge=1): |
OlderNewer