View index.html
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Halini Resume</title>
</head >
<body style="
background-color: Rgb(204,242,102);
font-size: 12px;
font-family: sans-serif;
View FiraCode-Regular.css
1 2 3 4 5 6 7 8 9 10
/* Generated by Fontie - the magic webfont generator <http://fontie.flowyapps.com> */
 
@font-face {
font-family:'FiraCode-Regular';
src: url('FiraCode-Regular.eot');
src: url('FiraCode-Regular.eot?#iefix') format('embedded-opentype'),
url('FiraCode-Regular.woff') format('woff'),
url('FiraCode-Regular.ttf') format('truetype'),
url('FiraCode-Regular.svg#FiraCode-Regular') format('svg');
font-weight: 400;
View addCallbackJSONP.js
1 2 3 4 5 6 7 8 9 10
function addCallbackJSONP(url, callback, opt_callbackParamName) {
var parent = document.getElementsByTagName('head')[0] || document.body;
var script = document.createElement('script');
var callbackName = ('_' + Math.random()).replace('.', '');
var hadOwnProperty = (window.hasOwnProperty(callbackName));
var oldCallback = window[callbackName];
var called;
window[callbackName] = function() {
if (!called) {
if (hadOwnProperty) {
View Wall.cpp
1 2 3 4 5 6 7 8 9 10
#include <bits/stdc++.h>
#define optimizar ios_base::sync_with_stdio(0); cin.tie(0)
#define MAXN 2000002
#define izq (nodo * 2)
#define der (nodo * 2) + 1
using namespace std;
 
int n, Q;
 
struct segment_tree {
View capture.py
1 2 3 4 5 6 7 8 9 10
import os
import gphoto2 as gp
 
class Camera:
def __init__(self):
pass
 
def open(self):
self.context = gp.gp_context_new()
self.camera = gp.check_result(gp.gp_camera_new())
View 安卓图片水印效果
1 2 3 4 5 6 7 8 9 10
* 添加文字到图片,类似水印文字。
* @param gContext
* @param gResId
* @param gText
* @return
*/
public static Bitmap drawTextToBitmap(Context gContext, int gResId, String gText) {
Resources resources = gContext.getResources();
float scale = resources.getDisplayMetrics().density;
Bitmap bitmap = BitmapFactory.decodeResource(resources, gResId);
View js-module-pattern-ex-1.js
1 2 3 4 5 6 7 8 9 10
var IceIceBaby = (function(window, $, undefined) {
/*
For clarity when you see this being referenced, in this instance its referencing
a new object that was created when the new keyword was called. The new object
will have the init function and the stop function on it.
*/
var VanillaIce = function() {
View hscroll.py
1 2 3 4 5 6 7 8 9 10
from kivy.uix.scrollview import ScrollView
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.base import runTouchApp
 
layout = GridLayout(rows=1, size_hint_x=None)
layout.bind(minimum_width=layout.setter('width'))
 
for i in range(30):
btn = Button(text=str(i), size_hint_x=None, width=40)
View mac.bashrc
1 2 3 4 5 6 7 8 9 10
# .bash_profile is
# source ~/.bashrc
 
# Alias
alias ls='ls -G'
alias cls='clear'
# reload bash
alias bashrc='source ~/.bash_profile'
# Open finder at the current terminal path
alias eh='open .'
View screenshot.js
1 2 3 4 5 6 7 8
page.open('http://net.tutsplus.com', function () {
var title = page.evaluate(function () {
return document.title;
});
page.clipRect = { top: 0, left: 0, width: 600, height: 700 };
page.render(title + ".png");
phantom.exit();
});
Something went wrong with that request. Please try again.